package com.shycloud.mido.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shycloud.mido.basic.api.dto.DictionaryDTO;
import com.shycloud.mido.basic.api.entity.BasDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author yyy
 * @since 2019-02-26
 */

public interface BasDictionaryMapper extends BaseMapper<BasDictionary> {

	/**
	 * 字典表查询
	 * @param dto
	 * @return
	 */
	List<BasDictionary> sel(@Param("dto") DictionaryDTO dto);

	/***
	 * 查询字典label
	 * @param type 字典类别
	 * @param value 数据值
	 * @return
	 */
	String getDic(@Param("type") String type,@Param("value")String value);

	/**
	 * 类型查询字典表
	 * @param type 字典类型
	 * @return
	 */
	List<BasDictionary> practiceDic(@Param("type") String type);
}
